<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
<!-- META  -->
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="description" content="<?php bloginfo('description') ?>" />
<meta name="generator" content="WordPress <?php bloginfo('version') ?>" /><!-- Please leave for stats -->

<!-- TITLE  -->
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>

<!-- CSS  -->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>

<!-- JS  -->
<script type="text/javascript" src="<?php bloginfo("template_url"); ?>/scripts/script.js"></script>

<!-- RSS FEED  -->
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> Comments RSS Feed" href="<?php bloginfo('comments_rss2_url') ?>"  />

<!-- GOOGLE FONTS  -->
<link href='http://fonts.googleapis.com/css?family=Signika:400,700,300' rel='stylesheet' type='text/css'>

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php wp_head() ?>

</head>

<body>

<div id="header-container">

	<div id="header" class="clearfix">
		<div id="logo">
	        <h1>
	            <a href="<?php bloginfo('url'); ?>" title="Home"><?php bloginfo('name');?></a>
	        </h1>
	    </div>

		<div id="recherche">
	    	<form id="searchform" class="search" action="<?php echo home_url(); ?>" method="get">
            	<input type="text" name="s" id="s" value="Rechercher..." class="search_input" onfocus="if (this.value == 'Rechercher...') { this.value = '';}" onblur="if (this.value == '') { this.value = 'Rechercher...';}"/>
            	<input type="submit" value="" class="search_submit" id="searchsubmit"/>
            </form>
		</div>


		<div id="menu" class="clearfix">
	     <?php
	     	if (function_exists("wp_nav_menu")) :
            wp_nav_menu(array(
                    'menu_id' => 'page-menu',
                    'menu_class' => 'page-menu',
                    'sort_column' 	=> 'menu_order',
                    'theme_location' => 'primary',
                    'container' => 'ul'
                    )
            );
        	endif;
		?>
        </div>

		<div class="espace_util">
			<?php if (is_user_logged_in()): ?>
				<a href="<?php bloginfo('url'); ?>/logout" title="Se déconnecter">Se déconnecter</a> |
				<a href="<?php bloginfo('url') ?>/profil" title="Mes informations">Mes informations</a> | 
				<a href="<?php bloginfo('url');?>/evenements/mes-reservations">Mes évènements</a>
				
			<?php else : ?>
				<a href="<?php echo bloginfo('url'); ?>/login" title="Se déconnecter">Se connecter</a> |
				<a href="<?php echo bloginfo('url'); ?>/register" title="S'inscrire">S 'inscrire</a>
			<?php endif; ?>
		</div>

		<div class="message_bienvenue">
		<a href="<?php echo bloginfo('url');
			echo'/profil';
			?>" title="Mon profil"><?php
			if (is_user_logged_in()):
		 		$userid = get_current_user_id();
				$user =get_user_meta($userid);
				echo 'Bonjour '. $user['first_name'][0] . " ".$user['last_name'][0];
			endif;?></a>
		</div>

	</div>

</div><!--  #header -->
	<div id="container">

